<!DOCTYPE html>
<html lang="en">

<head>
  <meta charset="UTF-8">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <title>Document</title>
  <script src="https://cdn.jsdelivr.net/npm/vue/dist/vue.js"></script>
</head>

<body>
  <div id="app">
    <anchored-heading></anchored-heading>

  </div>

  <script>

    Vue.component('anchored-heading', {
      // template:``
      render: function (createElement) {
        return createElement(
          'div',
          {
            'class': {
              foo: true,
              bar: false
            }
          },
          [
            'hello world',
            createElement(
              'h1',
              {},
              [
                '太原2003'
              ]
            ),
            createElement(
              'h2',
              {},
              [
                '我是一个h2'
              ]
            )

          ]
        )
      }
    })

    var vm = new Vue({
      el: "#app"
    })
  </script>
</body>

</html>